<?php 

/**
 Template Name: aboutus
 */

get_header(); 

?>
<style type="text/css">
	.whole_list{
		list-style: none;
	}
	.whole_list li{
		margin:1rem 0;
	}
</style>
<div class="category-header">
	<h1 class="title">
		<img src="<?php bloginfo('template_url'); ?>/images/postload.gif">
		Ye-team人员目录
	</h1>
</div>	
<div class="category-content">

	<?php
$args=array(
'orderby' => 'ID',
'order' => 'ASC',
'orderby'=> 'name',
'show_count'   => $c,
'hierarchical' => $h,
'title_li'=>'',
'include'=>''
);
$categorie=get_categories($args);
?>

<?php foreach ($categorie as $cat) : ?>
	<li class="team_list">
		<a href="<?php echo get_category_link($cat->term_id); ?>">
			<div class="team_list_img"><img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /></div>
			<span><?php echo $cat->cat_name; ?></span>
		</a>
	</li>
<?php endforeach; ?>

</div>
<?php get_footer(); ?>
<script type="text/javascript">
		$(".team_list_img img").each(function(){
			var img_src = $(this).attr("src");
			var x = 10;     
    		var y = 1;     
    		var rand = parseInt(Math.random() * (x - y + 1) + y);
			if (img_src == "") {
				//alert('123');
				$(this).attr({
					src: "http://www.yemad.com/wp-content/themes/Siren-master/images/random/d-" + rand + ".jpg",
				});
			}
		})
</script>